/* Login页面样式 - 使用全局主题色#1890ff */

:root {
  --primary-color: #1890ff;
  --primary-hover: #40a9ff;
  --primary-active: #096dd9;
  --primary-light: rgba(24, 144, 255, 0.1);
  --primary-shadow: rgba(24, 144, 255, 0.3);
  --primary-shadow-hover: rgba(24, 144, 255, 0.4);
}

/* 确保登录页面样式优先级最高 */
.business-theme .login-container,
.login-container {
  min-height: 100vh !important;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%) !important;
  position: relative !important;
  overflow: hidden !important;
}

/* 背景装饰元素 */
.business-theme .login-background,
.login-background {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  overflow: hidden !important;
  z-index: 1 !important;
}

.business-theme .bg-shape,
.bg-shape {
  position: absolute !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(64, 169, 255, 0.05) 100%) !important;
  animation: float 6s ease-in-out infinite !important;
}

.bg-shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.bg-shape-2 {
  width: 200px;
  height: 200px;
  top: 60%;
  right: -5%;
  animation-delay: 2s;
}

.bg-shape-3 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.login-content {
  width: 100%;
  position: relative;
  z-index: 2;
}

.login-brand {
  text-align: center;
  margin-bottom: 20px;
  animation: slideUp 0.8s ease-out;
}

.brand-logo {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  box-shadow: 0 4px 16px var(--primary-shadow);
  transition: all 0.3s ease;
}

.brand-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--primary-shadow-hover);
}



.brand-title {
  color: var(--primary-color) !important;
  font-weight: 800 !important;
  font-size: 30px !important;
  margin-bottom: 4px !important;
  letter-spacing: -0.5px;
}

.brand-subtitle {
  color: #595959 !important;
  font-size: 14px !important;
  font-weight: 500;
}

.business-theme .login-card,
.login-card {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid var(--primary-light) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 40px var(--primary-light) !important;
  padding: 24px 20px !important;
  animation: slideUp 0.8s ease-out 0.2s both !important;
}

/* 登录模式切换 */
.login-mode-switch {
  margin-bottom: 16px;
  text-align: center;
}

.mode-button {
  height: 40px !important;
  border-radius: 20px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  border: 2px solid transparent !important;
}

.mode-button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px var(--primary-light) !important;
}

.mode-button.ant-btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%) !important;
  border-color: var(--primary-color) !important;
}

.mode-button.ant-btn-default {
  background: #ffffff !important;
  border-color: #d9d9d9 !important;
  color: #595959 !important;
}

.mode-button.ant-btn-default:hover {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}

.login-header {
  text-align: center;
  margin-bottom: 20px;
}

.login-title {
  color: #262626 !important;
  font-weight: 700 !important;
  font-size: 22px !important;
  margin-bottom: 8px !important;
}

.login-description {
  color: #595959 !important;
  font-size: 14px !important;
  line-height: 1.5;
}

.login-form {
  margin-bottom: 8px;
}

.business-theme .login-input,
.login-input {
  height: 48px !important;
  border-radius: 12px !important;
  border: 2px solid #f0f0f0 !important;
  background: #ffffff !important;
  transition: all 0.3s ease !important;
  font-size: 16px !important;
}

.business-theme .login-input:focus,
.login-input:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 4px var(--primary-light) !important;
}

.business-theme .login-input:hover,
.login-input:hover {
  border-color: var(--primary-hover) !important;
}

.input-prefix-icon {
  color: #8c8c8c !important;
  transition: color 0.3s ease !important;
}

.login-input:focus .input-prefix-icon {
  color: var(--primary-color) !important;
}

.business-theme .login-button,
.login-button {
  height: 48px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%) !important;
  border: none !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  box-shadow: 0 4px 16px var(--primary-shadow) !important;
  transition: all 0.3s ease !important;
}

.business-theme .login-button:hover,
.login-button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 24px var(--primary-shadow-hover) !important;
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%) !important;
}

.business-theme .login-button:active,
.login-button:active {
  transform: translateY(0) !important;
}



.business-theme .ant-form-item-label > label,
.ant-form-item-label > label {
  color: #262626 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}

.remember-checkbox {
  color: #595959 !important;
  font-size: 14px !important;
}

.remember-checkbox .ant-checkbox-checked .ant-checkbox-inner {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.forgot-password-link {
  color: var(--primary-color) !important;
  padding: 0 !important;
  font-size: 14px !important;
  transition: color 0.3s ease !important;
}

.forgot-password-link:hover {
  color: var(--primary-hover) !important;
}

.login-footer {
  text-align: center;
  margin-top: 8px;
}

.footer-text {
  color: #8c8c8c !important;
  font-size: 12px !important;
}



@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-input:focus {
  animation: inputFocus 0.3s ease;
}

@keyframes inputFocus {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.login-button:active {
  animation: buttonClick 0.1s ease;
}

@keyframes buttonClick {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
  }
}